package com.project.blog.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BlogInformationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BlogInformationExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleIsNull() {
            addCriterion("BlogInformation_title is null");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleIsNotNull() {
            addCriterion("BlogInformation_title is not null");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleEqualTo(String value) {
            addCriterion("BlogInformation_title =", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleNotEqualTo(String value) {
            addCriterion("BlogInformation_title <>", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleGreaterThan(String value) {
            addCriterion("BlogInformation_title >", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleGreaterThanOrEqualTo(String value) {
            addCriterion("BlogInformation_title >=", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleLessThan(String value) {
            addCriterion("BlogInformation_title <", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleLessThanOrEqualTo(String value) {
            addCriterion("BlogInformation_title <=", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleLike(String value) {
            addCriterion("BlogInformation_title like", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleNotLike(String value) {
            addCriterion("BlogInformation_title not like", value, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleIn(List<String> values) {
            addCriterion("BlogInformation_title in", values, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleNotIn(List<String> values) {
            addCriterion("BlogInformation_title not in", values, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleBetween(String value1, String value2) {
            addCriterion("BlogInformation_title between", value1, value2, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationTitleNotBetween(String value1, String value2) {
            addCriterion("BlogInformation_title not between", value1, value2, "bloginformationTitle");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidIsNull() {
            addCriterion("BlogInformation_classId is null");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidIsNotNull() {
            addCriterion("BlogInformation_classId is not null");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidEqualTo(Integer value) {
            addCriterion("BlogInformation_classId =", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidNotEqualTo(Integer value) {
            addCriterion("BlogInformation_classId <>", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidGreaterThan(Integer value) {
            addCriterion("BlogInformation_classId >", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidGreaterThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_classId >=", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidLessThan(Integer value) {
            addCriterion("BlogInformation_classId <", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidLessThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_classId <=", value, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidIn(List<Integer> values) {
            addCriterion("BlogInformation_classId in", values, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidNotIn(List<Integer> values) {
            addCriterion("BlogInformation_classId not in", values, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_classId between", value1, value2, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationClassidNotBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_classId not between", value1, value2, "bloginformationClassid");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeIsNull() {
            addCriterion("BlogInformation_createTime is null");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeIsNotNull() {
            addCriterion("BlogInformation_createTime is not null");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeEqualTo(Date value) {
            addCriterion("BlogInformation_createTime =", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeNotEqualTo(Date value) {
            addCriterion("BlogInformation_createTime <>", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeGreaterThan(Date value) {
            addCriterion("BlogInformation_createTime >", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("BlogInformation_createTime >=", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeLessThan(Date value) {
            addCriterion("BlogInformation_createTime <", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("BlogInformation_createTime <=", value, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeIn(List<Date> values) {
            addCriterion("BlogInformation_createTime in", values, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeNotIn(List<Date> values) {
            addCriterion("BlogInformation_createTime not in", values, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeBetween(Date value1, Date value2) {
            addCriterion("BlogInformation_createTime between", value1, value2, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("BlogInformation_createTime not between", value1, value2, "bloginformationCreatetime");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberIsNull() {
            addCriterion("BlogInformation_Number is null");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberIsNotNull() {
            addCriterion("BlogInformation_Number is not null");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberEqualTo(Integer value) {
            addCriterion("BlogInformation_Number =", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberNotEqualTo(Integer value) {
            addCriterion("BlogInformation_Number <>", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberGreaterThan(Integer value) {
            addCriterion("BlogInformation_Number >", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_Number >=", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberLessThan(Integer value) {
            addCriterion("BlogInformation_Number <", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberLessThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_Number <=", value, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberIn(List<Integer> values) {
            addCriterion("BlogInformation_Number in", values, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberNotIn(List<Integer> values) {
            addCriterion("BlogInformation_Number not in", values, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_Number between", value1, value2, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_Number not between", value1, value2, "bloginformationNumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberIsNull() {
            addCriterion("BlogInformation_watchNumber is null");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberIsNotNull() {
            addCriterion("BlogInformation_watchNumber is not null");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberEqualTo(Integer value) {
            addCriterion("BlogInformation_watchNumber =", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberNotEqualTo(Integer value) {
            addCriterion("BlogInformation_watchNumber <>", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberGreaterThan(Integer value) {
            addCriterion("BlogInformation_watchNumber >", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_watchNumber >=", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberLessThan(Integer value) {
            addCriterion("BlogInformation_watchNumber <", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberLessThanOrEqualTo(Integer value) {
            addCriterion("BlogInformation_watchNumber <=", value, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberIn(List<Integer> values) {
            addCriterion("BlogInformation_watchNumber in", values, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberNotIn(List<Integer> values) {
            addCriterion("BlogInformation_watchNumber not in", values, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_watchNumber between", value1, value2, "bloginformationWatchnumber");
            return (Criteria) this;
        }

        public Criteria andBloginformationWatchnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("BlogInformation_watchNumber not between", value1, value2, "bloginformationWatchnumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}